package cn.tedu.mintmall.service;

import cn.tedu.mintmall.dto.AddressAddNewDTO;
import cn.tedu.mintmall.dto.AddressUpdateDTO;
import cn.tedu.mintmall.entity.Address;
import cn.tedu.mintmall.vo.AddressVO;

public interface IAddressService {

    //1. 新增地址
    void addAddress(AddressAddNewDTO addressAddNewDTO);

    //2. 删除地址通过用户id
    void removeAddress(Long userId);

    //3. 根据联系人修改地址
    void updateAddress(AddressUpdateDTO addressUpdateDTO);

    //4. 根据联系人查看地址
    AddressVO findAddressByContactName(String contactName);

}
